import request from '@/utils/request'

export function listwarehouseInv(query) {
  return request({
    url: '/material/warehouseInv/list',
    method: 'get',
    params: query
  })
}

export function createwarehouseInv(data) {
  return request({
    url: '/material/warehouseInv/create',
    method: 'post',
    data
  })
}

export function readwarehouseInv(data) {
  return request({
    url: '/material/warehouseInv/get/' + data.id,
    method: 'get'
  })
}

export function updatewarehouseInv(data) {
  return request({
    url: '/material/warehouseInv/update',
    method: 'post',
    data
  })
}

export function deletewarehouseInv(data) {
  return request({
    url: '/material/warehouseInv/delete/' + data.id,
    method: 'delete'
  })
}

export function stocklist(query) {
  return request({
    url: '/material/tsWarehouse/list',
    method: 'get',
    params: query
  })
}

export function listtsCabinet(query) {
  return request({
    url: '/material/tsCabinet/list',
    method: 'get',
    params: query
  })
}

export function listDetail(query) {
  return request({
    url: '/material/warehouseInv/docalwarehouseinvdtl',
    method: 'get',
    params: query
  })
}
